package com.hongshu.web.service.recommendation.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 模型预测结果模型
 * 
 * @author hongshu
 * @date 2024/01/01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ModelPrediction {
    
    private double ctrScore;        // 点击率预测分数
    private double durationScore;   // 时长预测分数
    private double interactionScore; // 互动率预测分数
    
    /**
     * 默认预测结果
     */
    public static ModelPrediction defaultPrediction() {
        return ModelPrediction.builder()
            .ctrScore(0.1)
            .durationScore(0.3)
            .interactionScore(0.2)
            .build();
    }
}


